<%@ page language="java"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登录</title>
<%@include file="../core/head.jsp"%>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${ctx}/css/core.css" type="text/css"></link>
<link rel="stylesheet" href="${ctx}/css/regist.css" type="text/css"></link>
<link rel="stylesheet" href="${ctx}/css/buttons.css" type="text/css"></link>
<link rel="stylesheet" href="${ctx}/css/input.css" type="text/css">
<script type="text/javascript" src="${ctx}/js/modules/code/MessageBox.js"></script>
<script type="text/javascript">
$(function(){
	if("${justRegist}"=="true"){
		$.MessageBox.info("注册成功，请登录");
	}
});
</script>
</head>

<body>
<div class="width center">
	<a href="${ctx}/exam/index.action"><div id="logo"></div></a>
	<div id="login-panel" class="radius shadow">
		<div id="login-img"  style="background: url('${ctx}/image/index/logo1.png') left no-repeat;"></div>
	<!-- 
	 <div id="login-img" style="text-align: center;"><img  src="${ctx}/image/index/indexlogo.png" height="200px"/></div>
	 -->
		<div id="login-form" >
			<s:form action="login" id="mainForm" method="post">
				<input type="hidden" name="url" value="${url}">
				<label class="label log-item"  >
					<span class="horizontal">用户名：</span>
					<input type="text"  name="user.username" value="${user.username}" /> 
				</label>
				<label class="label log-item" >
					<span class="horizontal">密码：</span>
					<input type="password" name="user.password" /> 
				</label>
				<div style="height: 24px;">
					<s:actionerror cssClass="reg-msg" />  
				</div>
				<div class="label log-item"  style="margin-top: 10px; padding-right:10px;" >
					<label>
					<input type="checkbox"  name="autoLogin" value="true" checked="checked"/>  
					<span>下次自动登录</span>
					</label>
					<span>
						<!-- 
						 <a href="#">忘记密码?</a>
						 -->
						<a href="${ctx}/user/registInit.action">注&nbsp;册</a>
					</span>
				</div>
				<label class="label log-item"  >
					<span> </span>
					<input type="submit"   class="button green" style=" text-align: center;" value="登录"/> 
				</label>
				<!-- 
				<label class="label log-item"  >
					<span>使用合作网站登录：<a>QQ</a></span>
				</label>
				 -->
			</s:form>
		</div>
	</div>
	<%@include file="../core/bottom.jsp"%>
</div>
</body>
</html>
